package com.tanhua.manager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.domain.db.UserFreeze;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

/**
 * @author Mr.Seven
 * @date 2021/03/01 22:44
 */

public interface UserFreezeMapper extends BaseMapper<UserFreeze> {

    @Delete("delete from tb_user_freeze where id = #{id}")
    void delete(Long id);

    @Select("select * from tb_user_freeze where user_id = #{userId}")
    UserFreeze findByUserId(Long userId);
}
